package day05;

public class StuBean {
    String num;
    int age;
    String name;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public StuBean(String num, int age, String name) {
        this.num = num;
        this.age = age;
        this.name = name;
    }

    public void getInf(){
        System.out.println(this.num);
        System.out.println(this.age);
        System.out.println(this.name);
    }
}
